﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TYRTUBase.Comm
{
    public class IRSpedHelper
    {
        public static EnumIRMeasSpd GetSpeed(int irSpeed)
        {
            EnumIRMeasSpd spd = EnumIRMeasSpd.MEDIUM;
            if (irSpeed == (int)EnumIRMeasSpd.EXFAST)
            {
                spd = EnumIRMeasSpd.EXFAST;
            }
            else if (irSpeed == (int)EnumIRMeasSpd.FAST)
            {
                spd = EnumIRMeasSpd.FAST;
            }
            else if (irSpeed == (int)EnumIRMeasSpd.MEDIUM)
            {
                spd = EnumIRMeasSpd.MEDIUM;
            }
            else if (irSpeed == (int)EnumIRMeasSpd.SLOW)
            {
                spd = EnumIRMeasSpd.SLOW;
            }
            return spd;
        }
    }
}